function OverviewTabController(calendarApplication, overviewTabItem, otherTabItems) {
    this._calendarApplication = calendarApplication;
    this._overviewTabItem = overviewTabItem;
    this._otherTabItems = otherTabItems;
}
OverviewTabController.prototype = {
    register: function(calendar) {
        var me = this;
        this._overviewTabItem.click(function() {
            me._calendarApplication.changeToOverviewMode();
        });
        this._otherTabItems.foreach(function(tabItem) {
            tabItem.click(function() {
                me._calendarApplication.changeToFillMode();
            });
        });
    }
};
